export default {
  setLogin(state, payload) {
    state.login = payload;
    console.log(payload);
  },
  resetLogin(state) {
    state.login = {
      status: -1,
      userbase: null,
      userinfo: null
    }
  },
  setPasswd(state, payload) {
    state.login.userbase.passwd = payload;
  },
  setResponse(state, payload) {
    state.dev.responses.push(payload);
  },
  setRouterNext(state, payload) {
    state.router.next = payload;
  },
  setChangelog(state, payload) {
    state.changelog = payload;
  },
  setTodolist(state, payload) {
    state.todolist = payload;
  },
  setTimer(state, payload) {
    state.deamonTimer = payload;
  },
  setUpdateTime(state, payload) {
    state.updateTime = payload;
  }
}